package net.zjitc.dao;

import java.util.List;
import net.zjitc.pojo.Category;
import net.zjitc.pojo.CategorySecond;
import org.springframework.stereotype.Component;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/28 16:18
 * @description:
 */
@Component
public interface CategoryDao {

  List<Category> findAll();

  Integer editCategory(Category category);

  Integer editCategorySecond(CategorySecond categorySecond);

  List<CategorySecond> findAllSecond();

  List<CategorySecond> findCategorySecondByCid(Integer cid);

  Integer addCategory(String cname);

  Integer addCategorySecond(CategorySecond categorySecond);

  Integer deleteCategory(String cid);

  Integer deleteCategorySecond(String csid);


}
